import { createRouter, createWebHistory } from "vue-router";
const routes = [
  {
    path: "/",
    redirect: "/index",
  },
  {
    path: "/index",
    component: () =>
      import(/* webpackChunkName: "index" */ "@/views/welcome.vue"),
  },
  {
    path: "/splashscreen",
    component: () =>
      import(/* webpackChunkName: "login" */ "@/views/SplashScreen.vue"),
  },
  {
    path: "/clip",
    component: () =>
      import(/* webpackChunkName: "clip" */ "@/views/Clipboard.vue"),
  },
];
// Vue-router新版本中，需要使用createRouter来创建路由
const router = createRouter({
  // 指定路由的模式
  history: createWebHistory(),
  routes,
});
export default router;
